<?php  
$obat = $this->db->get('obat')->result_array();
?>
<table class="table table-striped">
	<tr>
		<th>Kode</th>
		<th>Nama Obat</th>
		<th>Min Dosis</th>
		<th>Max Dosis</th>
	</tr>
	<?php foreach($obat as $row): ?>
		<tr>
			<td><?php echo $row['KdObat'] ?></td>
			<td><?php echo $row['NmObat'] ?></td>
			<td><?php echo $row['MinDosis'] ?></td>
			<td>
				<a href="#" class="editme" id="MaxDosis" 
				data-type="text" data-pk="<?php echo $row['KdObat'] ?>" data-url="<?php echo site_url('form_dinamis/update_max_dosis');?>" 
				data-title="Masukkan maksimal dosis obat">
					<?php echo $row['MaxDosis'] ?>
				</a>
			</td>
		</tr>
	<?php endforeach ?>
</table>